﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace zichan.Entity
{
    public class DepartmentRole
    {
        [Key]
        public int Id { get; set; }
        public int DepartmentId { get; set; }
        [NotMapped]
        public string DepartmentName { get; set; }
        [Required(ErrorMessage ="角色不能为空")]
        public int RoleId { get; set; }
        public string RoleName { get; set; }
    }
}
